package com.huang;



/**
 * @author HuangShen
 * @Description
 * @create 2021-03-21 14:04
 */
public class TestClass {


    public static void main(String[] args) {
        System.out.println(3^6);
        System.out.println(Integer.toBinaryString(3));
        System.out.println(Integer.toBinaryString(6));
        System.out.println(Integer.toBinaryString(5));
        System.out.println(Integer.toBinaryString(5));

        int t=1;
        switch (t){
            case 1: {
                System.out.println("1");
                break;
            }
            case 2: {
                System.out.println("2");
                break;
            }
            default:{

            }

        }

        String string ="987";
        System.out.println(string instanceof  String);

//        throw  new MyException("自定义异常类");

        new TaskThread().start();
        new Thread(){
            @Override
            public void run() {
                System.out.println(Thread.currentThread().getName()+"匿名创建线程");
            }
        }.start();

    }
}
